package xkp.lesson3;

import java.util.Arrays;

public class Demo3 {
	public static void main(String[] args) {
		char[] arr = {'武','汉','加','油'};
		String str1 = new String(arr);
		System.out.println(str1.length());
		String str2 = new String(arr,1,2);
		System.out.println(str1);
		System.out.println(str2);
		String str = "012,34567,89";
		System.out.println(str.substring(5,8));
		System.out.println(str.concat("123"));
		System.out.println(str.contains("1233"));
		String[] strs = str.split(",");
		System.out.println(Arrays.toString(strs));
	}

}
